package com.yyplatform.admin.infra.web.shiro;

import org.apache.shiro.authc.AuthenticationToken;


public class JwtShiroToken implements AuthenticationToken {


    public static final String JWT_TOKEN_NAME = "Authorization";

    private String token;

    public JwtShiroToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
